import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import category from './modules/category.js'
import staff from './modules/staff.js'
import customer from './modules/customer_management.js'
import log from './modules/log.js'
import details from './modules/details.js'
import product from './modules/product'
import order from './modules/order.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    category,
    staff,
    customer,
    log,
    details,
    product,
    order
  },
  getters
})

export default store
